﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.HtmlControls;

namespace JqueryNet.FormControl.FormHtmlControl
{
    public class JHtmlInputButton : JHtmlControl
    {
        HtmlInputButton _Html;
        public JHtmlInputButton(HtmlInputButton _html)
            : base(_html)
        {
            _Html = _html;
        }

        public override void Attr(string key)
        {
            if (key.ToLower() == "value")
            {
                Value = _Html.Value;
            }
            else
                base.Attr(key);
        }

        public override void Attr(string key, string value)
        {
            if (key.ToLower() == "value")
            {
                _Html.Value = value;
            }
            else
                base.Attr(key, value);
        }

        public override void Val(string value)
        {
            _Html.Value = value;
        }

        public override void Val()
        {
            Value = _Html.Value;
        }

    }
}
